#define _CRT_SECURE_NO_WARNINGS 1
#include"bitset.h"
#include<iostream>
#include<vector>
using namespace std;

int main()
{
	/*study::bitset<100> bs;
	bs.set(40);
	bs.set(39);

	cout << bs.test(38) << endl;
	cout << bs.test(39) << endl;
	cout << bs.test(40) << endl;
	cout << bs.test(41) << endl;

	bs.reset(40);
	cout << bs.test(38) << endl;
	cout << bs.test(39) << endl;
	cout << bs.test(40) << endl;
	cout << bs.test(41) << endl;*/

	/*int a[] = { 1,4,7,9,44,88,1,4,88,99,78,5,7 ,7,7,7 };
	study::twobitset<100> bs;
	for (auto e : a)
	{
		bs.set(e);
	}
	bs.print();*/

	/*int a[] = { 1, 1, 4, 7, 9, 44, 88, 4, 88, 99, 78, 5, 7, 7, 7, 7 };
	study::threebitset<100> bs;
	for (auto e : a)
	{
		bs.set(e);
	}
	bs.print();*/

	int a1[] = { 1, 2, 3, 4, 5, 6};
	int a2[] = { 1, 2, 4, 5, 6, 7};
	study::intersection<100> bs1;
	for (auto e : a1)
	{
		bs1.set(e);
	}

	for (auto e : a2)
	{
		bs1.set(e);
	}
	return 0;
}